1.框架 grViz(" digraph boxes_and_circles {流程图语法 } ")
2.设置节点形状:node[shape=box/oval/cicle/diamond/egg/square/triangle/point] 节点1;节点2;
3.流程图连接:一对一 A->1 一对多 A -> {B C}
4.线中文字:a->b[label=线中文字] 5. 6.官网连接
1.节点id:nodes <- data.frame(id = 1:3,label=c(‘名称1’,‘名称2’,‘名称3’),shape=‘circle/square’)
2.流程对应关系: edges <- data.frame(
from = c(1,2),
线中标识:label=c(‘a’,‘b’),
to = c(1,3),
value=c(100,200),
标题:title =c(‘title1’,‘title2’) )
3.绘制流程:visNetwork(nodes, edges, width = “100%”,title=‘this is a title’)
4.节点用图片:nodes<-data.frame(id=1:3,shape=‘image’,image=c(‘地址1’,‘地址2’,‘地址3’))
1.调用:library(DT) datatable(cars) 2.网页中修改数据:datatable(cars, editable = ‘cell’) 3.隐藏行名称:datatable(head(mtcars), rownames = FALSE) 4.设置列名称:datatable(head(iris), colnames = c(‘Here’, ‘Are’, ‘Some’, ‘New’, ‘Names’)) 5.图表标题:datatable( head(iris), caption = ‘Table 1: This is a simple caption for the table.’ ) 6.筛选器:datatable(cars, filter = ‘top/bottom’)